<!DOCTYPE html>
<html lang="en">
	<head>
    	<meta name="layout" content="main_pc">
        <title>火堆工作台</title>       
        <link rel="stylesheet" href="${resource(dir: 'css', file: 'user.center.css')}" type="text/css">
    </head>
<body>

	<div class="container-fluid">

		<section class="quick-navi mb20">
			<div class="container">
				<a href="#" class="quick-link"><span>火堆工作台</span><span
					class="caret"></span></a>
				<!--a href="#" class="quick-link">联系我们</a-->
			</div>
		</section>

		<section>
			<div class="container mb50">
												
				<g:render template="navigate"   model="[status: status]"/>
				
				
				
				<div class="right-content" id="rightconsole">       
               		<div class='meterial-lib-box'>           
                       <div class="content-box">
                                       
                           <div id="create-project" class="content scaffold-create" role="main">

							<g:form url="[action:'bannerSave']" class="form-box resource-complete" id="form" method='post' enctype="multipart/form-data">
								
								<div class="mb30">
									<span class="form-title">首页海报<span class="red-highlight">*</span></span>	
									<span class="form-img">
									    <div class="img-box" id='img_div' style="background-image: url('/scfire/project/imgRead?img=${banner.img1}');">
									        <div class="img-default" style="display: none;">+</div>
									        <input type="file" name="img1" value="" />
									    </div>
									    <div id='img_div_error' class=''></div>链接 <input name="link1" type="text" value="${banner.link1}"/>
									</span>		
									
									<div class="clearboth"></div>
								</div>
								
								<div class="mb30">
									<span class="form-title">首页海报<span class="red-highlight">*</span></span>	
									<span class="form-img">
									    <div class="img-box" id='img_div' style="background-image: url('/scfire/project/imgRead?img=${banner.img2}');">
									        <div class="img-default" style="display: none;">+</div>
									        <input type="file" name="img2" value="" />
									    </div>
									    <div id='img_div_error' class=''></div>链接 <input name="link2" type="text" value="${banner.link2}"/>
									</span>		
									<div class="clearboth"></div>
								</div>
								
								<div class="mb30">
									<span class="form-title">首页海报<span class="red-highlight">*</span></span>	
									<span class="form-img">
									    <div class="img-box" id='img_div' style="background-image: url('/scfire/project/imgRead?img=${banner.img3}');">
									        <div class="img-default" style="display: none;">+</div>
									        <input type="file" name="img3" value="" />
									    </div>
									    <div id='img_div_error' class=''></div>链接 <input name="link3" type="text" value="${banner.link3}"/>
									</span>		
									<div class="clearboth"></div>
								</div>
								
								<div class="mb30">
									<span class="form-title">首页海报<span class="red-highlight">*</span></span>	
									<span class="form-img">
									    <div class="img-box" id='img_div' style="background-image: url('/scfire/project/imgRead?img=${banner.img4}');">
									        <div class="img-default" style="display: none;">+</div>
									        <input type="file" name="img4" value="" />
									    </div>
									    <div id='img_div_error' class=''></div>链接 <input name="link4" type="text" value="${banner.link4}"/>
									</span>		
									<div class="clearboth"></div>
								</div>
								
								<div class="mb30">
									<span class="form-title">首页海报<span class="red-highlight">*</span></span>	
									<span class="form-img">
									    <div class="img-box" id='img_div' style="background-image: url('/scfire/project/imgRead?img=${banner.img5}');">
									        <div class="img-default" style="display: none;">+</div>
									        <input type="file" name="img5" value="" />
									    </div>
									    <div id='img_div_error' class=''></div>链接 <input name="link5" type="text" value="${banner.link5}"/>
									</span>		
									<div class="clearboth"></div>
								</div>
								
								<div class="mb15">
                                    <span class="form-title"></span>
                                    <div class="btn btn-save btn-bluelight" onclick='$("#form").submit();'>提交</div>
                                    <div class="clearboth"></div>
                                </div>
							</g:form>
						</div>
						                    
                       </div>
                           
                    </div>            
                                 
                </div>
				
				
					
                	
			</div>
			<div class="clearboth"></div>
		</section>


	</div>

<!-- 删除弹出框 -->


	<script type="text/javascript">
	$(function(){
    	$('.meterial-lib-box .content-box .form-box .img-box input[type=file]').change(function(){
            $(this).siblings('.img-default').hide().parent().css('background-image', 'url(' + getFileURL(this) + ')');
        });
    });
	</script>

</body>
</html>